Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ai chat bot poc #2822

Merged
merged 5 commits into from
Dec 4, 2024
Merged

feat: ai chat bot poc #2822

merged 5 commits into from
Dec 4, 2024

Conversation

isekovanic
Copy link
Contributor

@isekovanic isekovanic commented Dec 3, 2024

🎯 Goal

Backport of this feature to V5. All of the details are in the other PR.

Things that needed to be changed and fixed:

  • The custom scroll view was completely breaking the message containers (wrapping them in 100% width Views fixed it)
  • The MessageOverlay was displaying AI generated messages twice

🛠 Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

🧪 Testing

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

isekovanic and others added 4 commits December 3, 2024 22:05
* feat: add StreamingMessageView to kick off ai feature

* fix: issues with message view

* feat: add AITypingIndicatorView

* feat: make send message button react to ai state

* fix: improve typewriter animation

* fix: improvements in ui and typewriter

* chore: add customizations to StreamingMessageView

* fix: hook deps

* chore: extract logic in hook

* fix: custom events

* fix: revert the type change in favor of changes in the LLC

* feat: codeblock scrollable view

* feat: table initial reimpl

* feat: finish table impl

* fix: horizontal scroll list performance issues

* feat: add markdown parsing fixes, optimistic code capture and various improvements

* fix: theme prop and theming in general

* fix: remove edited lalbel for ai messages

* fix: bug with stop streaming button and types

* fix: colors in md rendering

* fix: rename custom scrollview

* chore: translations

* fix: remove TODO

* chore: extract indicator styles in theme

* fix: safeguard if channel does not exist

* fix: get rid of enum and introduce proper type

* fix: allow only message overrides

* chore: update event names as per the changes

* fix: bump stream-chat-js version to v8.46.0

* fix: use channel method for sending events

* fix: cover background mode case

* fix: use type from LLC

* chore: add jsdocs

* fix: move check to checker fn

* fix: add overrides for StreamingMessageView

* chore: add override for stop streaming button
@Stream-SDK-Bot
Copy link
Contributor

Stream-SDK-Bot commented Dec 3, 2024

SDK Size

title develop branch diff status
js_bundle_size 452 KB 453 KB +1288 B 🔴

@isekovanic isekovanic merged commit 4fbc2f4 into develop Dec 4, 2024
6 of 7 checks passed
@isekovanic isekovanic deleted the feat/ai-chat-bot-poc branch December 4, 2024 10:23
@github-actions github-actions bot mentioned this pull request Dec 4, 2024
@stream-ci-bot
Copy link
Contributor

🎉 This PR is included in version 5.44.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants